class RegisterCenter {
  constructor(id) {
    this.create(id);
  }
  // 表单id
  formId = null;
  // 实例
  instance = null;
  // 连接器
  connector = {};
  // 组件实例
  componentInstanceMap = {};

  create(id) {
    this.formId = id;
    this.instance = this;
  }
  setConnector = (connector) => {
      this.connector = connector;
  };
  addRegister = ({ id, componentInstance }) => {
    this.componentInstanceMap[id] = componentInstance;
  };
}

export default RegisterCenter;
